package oop2.ch6;

import oop2.JavaClass;

/**
 * @author oldliu
 * @since 1.0
 */
public class JavaStudent {
    String name;//姓名
    String num;//学号
    String zhuanye;//专业
    String tel;//手机号
    public JavaStudent(){

    }
    public JavaStudent(String name1,String num1,String z1,String t1){
        name=name1;
        num=num1;
        zhuanye=z1;
        tel=t1;
    }
    public void show(){
        System.out.println("姓名:"+name);
        System.out.println("学号:"+num);
        System.out.println("专业:"+zhuanye);
        System.out.println("号码:"+tel);
    }
}
